package com.android.websms;

import com.android.webserver.fwapi.RawRessource;
import com.android.webserver.fwapi.WebApplication;

public class WebSMS extends WebApplication
{
	/**
	 * Map your web pages and resource : path, class, arguments for the init
	 * function
	 */
	@Override
	public boolean onCreate()
	{
		setApplicationPassword("");
		mountWebContent("websms", HelloPage.class);
		mountWebContent("websms/send", SendSMS.class);
		mountWebContent("websms/view", SMSHistory.class);
		
	//	mountWebContent("hello/pictures", ListPictures.class);
	//	mountWebContent("hello/picture", Picture.class);
//		mountWebContent("websms/test.jpg", RawRessource.class, 
//				RawRessource.DRAWABLE,	android.R.drawable.me);
		mountWebContent("websms/theme.css", RawRessource.class, 
				RawRessource.CSS,	R.raw.hello);
		
		mountWebContent("hello/file.js", RawRessource.class);
		return super.onCreate();
	}
}
